package com.vf.cloud.paas.app.master.api.sys.service.impl;

import org.springframework.stereotype.Service;

import com.vf.cloud.paas.app.master.api.sys.service.IUserLog;
import com.vf.cloud.paas.app.master.common.domain.UserLog;

@Service
public class UserLogImpl implements IUserLog {

	@Override
	public void saveLog(UserLog sysLog) {
		UserLog userLog = UserLog.dao.findById(sysLog.getId());
		if (userLog == null) {
			sysLog.save();
		} else {
			sysLog.update();
		}
	}

}
